import request from '@/utils/request'

export function classlist() {
  return request({
    url: '/common/classlist',
    method: 'get'
  })
}

export function roles() {
  return request({
    url: '/common/roles',
    method: 'get'
  })
}

export function courseslist(params) {
  return request({
    url: '/common/courseslist',
    method: 'get',
    params
  })
}

export function restPwd(data) {
  return request({
    url: '/common/resetPwd',
    method: 'post',
    data
  })
}

export function editPwd(data) {
  return request({
    url: '/common/editPwd',
    method: 'post',
    data
  })
}
